package com.iakuil.app.domain.dto.cmd;


import com.iakuil.app.common.core.jsr303.constraints.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 用户 注册参数
 *
 * @author Kai
 * @date 2024-02-05
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户注册参数")
public class UserRegister implements Serializable {

    @Schema(description = "用户账号")
    @NotBlank(message = "用户账号不能为空")
    @Size(max = 50, message = "用户账号不能超过{max}")
    private String userName;

    @Schema(description = "密码")
    @NotBlank(message = "用户密码不能为空")
    @Password
    private String password;
}
